<html><head><title>NaN</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">NaN()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result.f = <font color="#006666"><b>NaN</b></font>()</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Returns the special floating-point value representing 'Not a Number'. This value is returned from 
invalid calculations such as calculating the <a href="sqr.html">square root</a> of a negative number. 

</blockquote><p><b>Parameters</b></p><blockquote>
None.


</blockquote><p><b>Return value</b></p><blockquote>

Returns the value representing NaN. The result is a float or double value depending on whether 
it is assigned to a <a href="../reference/variables.html">float or double</a> variable. 

</blockquote><p><b>Remarks</b></p><blockquote>

NaN is a special value. Using NaN in any calculation with other values will again return the value NaN. 
The <a href="isnan.html">IsNaN()</a> function can be used to check whether a variable represents the value NaN. 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">Debug</font></b> <font color="#006666">IsNaN</font>(<font color="#006666">NaN</font>() * 5 + 2) <font color="#006666">; will display 1</font>
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="isnan.html">IsNaN()</a>, <a href="infinity.html">Infinity()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=mod.html>Mod()</a> - <a href=index.html>Math Index</a> - <a href=pow.html>Pow()</a> ->

</body></html>